home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15001 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.scruz.net!usenet
  2. From: Jon Shemitz <jon@midnightbeach.com>
  3. Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc
  4. Subject: Re: typecasting preferences
  5. Date: Tue, 16 Apr 1996 10:50:20 -0700
  6. Organization: Midnight Beach
  7. Message-ID: <3173DDDC.183A@midnightbeach.com>
  8. References: <4l020g$i9j@srvr1.engin.umich.edu>
  9. NNTP-Posting-Host: 165.227.113.198
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. HASDI RODZMANN HASHIM wrote:
  16. > Hi guys! I think my earlier post got lost so here it is again.... This is
  17. > for a student compiler project of mine....
  18. > If you have a choice, do you want the parethesis pair over the caster
  19. > (C-style) or over the castee (Pascal-style)? eg...
  20. > int a;
  21. > float b;
  22. > a = (int)b; /* cast to int */
  23. > a = int(b); /* allowable in C++ */
  24. > ...as for Pascal...
  25. > a := integer(b); { "a" in an integer and "b" is a real }
  26. > Thanx!
  27.  
  28. Pascal style. TypeName(SomeVar) looks like a function call.
  29.  
  30. -- 
  31.  
  32. http://www.midnightbeach.com/jon    Personal Pages
  33. http://www.midnightbeach.com/jon/pubs    Programming Publications
  34. http://www.midnightbeach.com/hs        Home School Resource List
  35.